﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.Text;
using ElectronicCommerce.Framework.Payment.Contract.DataContract.Common;
using ElectronicCommerce.Framework.Payment.Contract.ServiceContract;

namespace ElectronicCommerce.Framework.Payment.API
{
    /// <summary>
    /// 
    /// </summary>
    public class PaymentMethodServiceClient : ClientBase<IPaymentMethodService>, IPaymentMethodService
    {

        public PaymentMethodServiceClient()
        {
        }

        public PaymentMethodServiceClient(string endpointConfigurationName) :
            base(endpointConfigurationName)
        {
        }

        public PaymentMethodServiceClient(string endpointConfigurationName, string remoteAddress) :
            base(endpointConfigurationName, remoteAddress)
        {
        }

        public PaymentMethodServiceClient(string endpointConfigurationName, EndpointAddress remoteAddress) :
            base(endpointConfigurationName, remoteAddress)
        {
        }

        public PaymentMethodServiceClient(Binding binding, EndpointAddress remoteAddress) :
            base(binding, remoteAddress)
        {
        }

        public List<PaymentMethod> GetPaymentMethods()
        {
            return base.Channel.GetPaymentMethods();
        }
    }
}
